package com.example.demo.utils

import org.slf4j.Logger
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Configuration
import org.springframework.scheduling.annotation.EnableScheduling
import org.springframework.scheduling.annotation.Scheduled
import org.springframework.scheduling.annotation.Schedules
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter

//@Configuration
//@EnableScheduling
//class MyTask {
//    @Autowired
//    private lateinit var log: Logger
//
//    @Scheduled(cron = "*/5 * * * * ?")
//    fun doTask(){
//        log.info("doTask "+LocalDateTime.now())
//    }
//}